package javango.middleware;

import javango.api.MethodObjectParams;
import javango.http.HttpException;
import javango.http.HttpRequest;
import javango.http.HttpResponse;

// TODO take this to an interface

public class Middleware {
	
	public HttpResponse processRequest(HttpRequest req) throws HttpException {
		return null;
	}

	public HttpResponse processMethodAndParams(HttpRequest req, MethodObjectParams map) throws HttpException {
		return null;
	}
	

	public HttpResponse processResponse(HttpRequest request, HttpResponse response) throws HttpException {
		return response;
	}
	
	public HttpResponse processException(HttpRequest request, HttpResponse response, Throwable t) throws HttpException {
		return response;
	}
}
